package PhamVanHien;

public class SAMPLE96 {
	public static void main(String[] args) {
		// 1.Khai bao cac bien
		// khai bao bien so nguyen
		byte a; // nho nhat
		short b;
		int c;
		long d; // lon nhat

		// khoi tao gia tri cho bien
		a = 100;
		b = 200;
		c = 300;
		d = 400;

		// Hien thi gia tri cua bien

		System.out.println("a= " + a); // a=100
		System.out.println("b= " + b); // b=200
		System.out.println("c= " + c); // c=300
		System.out.println("d= " + d); // d=400

		// chu y: SD to hop phim ctrl + shift + f: can chinh lai ma lenh
		//khai bao bien so thap phan
		
		float fa;
		double da;
		float fb;
		float fc;
		float fd;
		
		//khoi tao gia tri cho bien
		fa= (float) 20.5; //hoac 
		fb=(float) 20.5;
		fc=20.5F;
		fd=20.5f;
		da=20.5;
		
		//hien thi gia tri cua bien
		
		System.out.println("fa= "+fa);
		System.out.println("fb= "+fb);
		System.out.println("fc= "+fc);
		System.out.println("fd= "+fd);
		System.out.println("da= "+da);
		
		//khai bao bien chuoi
		String strA;
		//khoi tao gia tri cho chuoi
		strA="Pham Van Hien";
		//hien thi gia tri cho bien
		System.out.println("strA= "+strA);
		
		//khai bao bien dung hoac sai
		boolean flag01, flag02;
		//khoi tao gia tri cho bien
		
		flag01 = true;
		flag02 = false;
		
		
	}

}
